All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.FileHandle

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.FileHandle

public class FileHandle
extends NativeObject
This class wraps the Objective-C class NSFileHandle.


Constructor Index

 o FileHandle()
This default constructor is equivalent to Objective-C's [[NSFileHandle alloc] init].
 o FileHandle(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o FileHandle(int)
This constructor has the same effect as calling - initWithFileDescriptor: on a newly allocated object.
 o FileHandle(int, boolean)
This constructor has the same effect as calling - initWithFileDescriptor:closeOnDealloc: on a newly allocated object.

Method Index

 o acceptConnectionInBackgroundAndNotify()
A wrapper for the - acceptConnectionInBackgroundAndNotify Objective-C instance method.
 o acceptConnectionInBackgroundAndNotifyForModes(Array)
A wrapper for the - acceptConnectionInBackgroundAndNotifyForModes: Objective-C instance method.
 o availableData()
A wrapper for the - availableData Objective-C instance method.
 o closeFile()
A wrapper for the - closeFile Objective-C instance method.
 o fileDescriptor()
A wrapper for the - fileDescriptor Objective-C instance method.
 o fileHandleForReadingAtPath(String)
A wrapper for the + fileHandleForReadingAtPath: Objective-C class method.
 o fileHandleForUpdatingAtPath(String)
A wrapper for the + fileHandleForUpdatingAtPath: Objective-C class method.
 o fileHandleForWritingAtPath(String)
A wrapper for the + fileHandleForWritingAtPath: Objective-C class method.
 o fileHandleWithNullDevice()
A wrapper for the + fileHandleWithNullDevice Objective-C class method.
 o fileHandleWithStandardError()
A wrapper for the + fileHandleWithStandardError Objective-C class method.
 o fileHandleWithStandardInput()
A wrapper for the + fileHandleWithStandardInput Objective-C class method.
 o fileHandleWithStandardOutput()
A wrapper for the + fileHandleWithStandardOutput Objective-C class method.
 o offsetInFile()
A wrapper for the - offsetInFile Objective-C instance method.
 o readDataOfLength(int)
A wrapper for the - readDataOfLength: Objective-C instance method.
 o readDataToEndOfFile()
A wrapper for the - readDataToEndOfFile Objective-C instance method.
 o readInBackgroundAndNotify()
A wrapper for the - readInBackgroundAndNotify Objective-C instance method.
 o readInBackgroundAndNotifyForModes(Array)
A wrapper for the - readInBackgroundAndNotifyForModes: Objective-C instance method.
 o readToEndOfFileInBackgroundAndNotify()
A wrapper for the - readToEndOfFileInBackgroundAndNotify Objective-C instance method.
 o readToEndOfFileInBackgroundAndNotifyForModes(Array)
A wrapper for the - readToEndOfFileInBackgroundAndNotifyForModes: Objective-C instance method.
 o seekToEndOfFile()
A wrapper for the - seekToEndOfFile Objective-C instance method.
 o seekToFileOffset(int)
A wrapper for the - seekToFileOffset: Objective-C instance method.
 o synchronizeFile()
A wrapper for the - synchronizeFile Objective-C instance method.
 o truncateFileAtOffset(int)
A wrapper for the - truncateFileAtOffset: Objective-C instance method.
 o waitForDataInBackgroundAndNotify()
A wrapper for the - waitForDataInBackgroundAndNotify Objective-C instance method.
 o waitForDataInBackgroundAndNotifyForModes(Array)
A wrapper for the - waitForDataInBackgroundAndNotifyForModes: Objective-C instance method.
 o writeData(Data)
A wrapper for the - writeData: Objective-C instance method.

Constructors

 o FileHandle
 protected FileHandle(boolean shouldAllocate,
                      int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o FileHandle
 public FileHandle()
This default constructor is equivalent to Objective-C's [[NSFileHandle alloc] init].

 o FileHandle
 public FileHandle(int fd,
                   boolean closeopt)
This constructor has the same effect as calling - initWithFileDescriptor:closeOnDealloc: on a newly allocated object.

 o FileHandle
 public FileHandle(int fd)
This constructor has the same effect as calling - initWithFileDescriptor: on a newly allocated object.

Methods

 o availableData
 public native Data availableData()
A wrapper for the - availableData Objective-C instance method.

 o readDataToEndOfFile
 public native Data readDataToEndOfFile()
A wrapper for the - readDataToEndOfFile Objective-C instance method.

 o readDataOfLength
 public native Data readDataOfLength(int length)
A wrapper for the - readDataOfLength: Objective-C instance method.

 o writeData
 public native void writeData(Data data)
A wrapper for the - writeData: Objective-C instance method.

 o offsetInFile
 public native int offsetInFile()
A wrapper for the - offsetInFile Objective-C instance method.

 o seekToEndOfFile
 public native int seekToEndOfFile()
A wrapper for the - seekToEndOfFile Objective-C instance method.

 o seekToFileOffset
 public native void seekToFileOffset(int offset)
A wrapper for the - seekToFileOffset: Objective-C instance method.

 o truncateFileAtOffset
 public native void truncateFileAtOffset(int offset)
A wrapper for the - truncateFileAtOffset: Objective-C instance method.

 o synchronizeFile
 public native void synchronizeFile()
A wrapper for the - synchronizeFile Objective-C instance method.

 o closeFile
 public native void closeFile()
A wrapper for the - closeFile Objective-C instance method.

 o fileHandleWithStandardInput
 public static native Object fileHandleWithStandardInput()
A wrapper for the + fileHandleWithStandardInput Objective-C class method.

 o fileHandleWithStandardOutput
 public static native Object fileHandleWithStandardOutput()
A wrapper for the + fileHandleWithStandardOutput Objective-C class method.

 o fileHandleWithStandardError
 public static native Object fileHandleWithStandardError()
A wrapper for the + fileHandleWithStandardError Objective-C class method.

 o fileHandleWithNullDevice
 public static native Object fileHandleWithNullDevice()
A wrapper for the + fileHandleWithNullDevice Objective-C class method.

 o fileHandleForReadingAtPath
 public static native Object fileHandleForReadingAtPath(String path)
A wrapper for the + fileHandleForReadingAtPath: Objective-C class method.

 o fileHandleForWritingAtPath
 public static native Object fileHandleForWritingAtPath(String path)
A wrapper for the + fileHandleForWritingAtPath: Objective-C class method.

 o fileHandleForUpdatingAtPath
 public static native Object fileHandleForUpdatingAtPath(String path)
A wrapper for the + fileHandleForUpdatingAtPath: Objective-C class method.

 o readInBackgroundAndNotifyForModes
 public native void readInBackgroundAndNotifyForModes(Array modes)
A wrapper for the - readInBackgroundAndNotifyForModes: Objective-C instance method.

 o readInBackgroundAndNotify
 public native void readInBackgroundAndNotify()
A wrapper for the - readInBackgroundAndNotify Objective-C instance method.

 o readToEndOfFileInBackgroundAndNotifyForModes
 public native void readToEndOfFileInBackgroundAndNotifyForModes(Array modes)
A wrapper for the - readToEndOfFileInBackgroundAndNotifyForModes: Objective-C instance method.

 o readToEndOfFileInBackgroundAndNotify
 public native void readToEndOfFileInBackgroundAndNotify()
A wrapper for the - readToEndOfFileInBackgroundAndNotify Objective-C instance method.

 o acceptConnectionInBackgroundAndNotifyForModes
 public native void acceptConnectionInBackgroundAndNotifyForModes(Array modes)
A wrapper for the - acceptConnectionInBackgroundAndNotifyForModes: Objective-C instance method.

 o acceptConnectionInBackgroundAndNotify
 public native void acceptConnectionInBackgroundAndNotify()
A wrapper for the - acceptConnectionInBackgroundAndNotify Objective-C instance method.

 o waitForDataInBackgroundAndNotifyForModes
 public native void waitForDataInBackgroundAndNotifyForModes(Array modes)
A wrapper for the - waitForDataInBackgroundAndNotifyForModes: Objective-C instance method.

 o waitForDataInBackgroundAndNotify
 public native void waitForDataInBackgroundAndNotify()
A wrapper for the - waitForDataInBackgroundAndNotify Objective-C instance method.

 o fileDescriptor
 public native int fileDescriptor()
A wrapper for the - fileDescriptor Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index